import {get, set} from "common";

if (device.os.isiOS || device.os.isAndroid){
	$.setBaseFontSize(16);
}else{
	$.query("html")[0]._css({
		"font-size": "16px"
	});
}

var pageType = get.getURLKeyValue(location.href, "type"),
	id = get.getURLKeyValue(location.href, "id");

import "common_store.script gotop header loading footer common_router.script";
$.query(window)._on("online", function() {
	$.router("/online");
})._on("offline", function(){
	$.router("/offline");
});

var scrollTopTime;
$.query(window)._on("scroll", function(e){
	typeof scrollTopTime !== "undefined" && clearTimeout(scrollTopTime);
	scrollTopTime = setTimeout(function(){
		$.query(".headermenu")[0]._hasClass("on") && $.query(".headermenu")[0]._removeClass("on");
		if (this._scrollTop() < 100){
			$.query(".gotop")[0]._addClass('hide');
		}else{
			$.query(".gotop")[0]._removeClass('hide');
		}
	}, 100);
});
$.useConfig({
	alias:{
		data: "data.0.0.1.js"
	},
	base: "//192.168.10.47/other/dist/yanglao/js/0.0.1/"
});
import "list_main";